home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1996 September
/
JCSM Shareware Collection (JCS Distribution) (September 1996).ISO
/
word_prc
/
njs30exe.zip
/
NJCONFIG.KEY
< prev
next >
Wrap
Text File
|
1994-11-20
|
9KB
|
274 lines
* this is a comment line
*--------------------------------------------------------------
* Key config file for NJSTAR ver 3.0
*
* ^ = CTRL @ = ALT # = SHIFT
*--------------------------------------------------------------
* MetaKey - two key commands
* Meta + ^A -> ^Z A -> Z 0 -> 9
* ESC; ^BACKSLASH; ^RBRACE; ^6; ^- (MINUS)
* ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _
*--------------------------------------------------------------
* ctrl-x is used for meta key, but can be defined to other key
^X MetaKey
Meta+^S SaveFile
Meta+^W SaveAs
Meta+^Z QuitFile
Meta+^V EditFile
Meta+N FileName
*-----------------------------------------------------------------------------
* Macro commands - Execute more than one command with one key stroke, plus more
*-----------------------------------------------------------------------------
* NOTE:
* 1. macro command start with 'Macro'
* 2. '&' at and means continue at next line
* 3. '#' followed by number n == Insert Ascii n into Macro key.
* Max n is 160, n can be specified as: DEC #150; OCT #083; HEX #0xA0.
* 4. '$' followed by number n == Sleep n ticks before exec. next command.
* 5. Lables are a name+':'; eg. BEG: END:, Max number of Lables is 64.
* 6. Jump Beg: == Jump to Label Beg: unconditionally
* 7. JTrue Beg: == Jump to Beg: if previous command is executed Ok
* 8. JFalse Beg: == Jump to Beg: if previous command is executed NOT Ok
* 9. Pause == Stop Macro Execution till Enter/ESC is Pressed
* 10. <ScreenOff> turn off screen display when in macro
* 11. <ScreenOn> turn on screen display when in macro
* 12. "XXXX" == insert XXXX into Only File or Search string. eg "NJSTAR"
* 13. 'XXXX' == insert XXXX into Pinyin Line or file. eg 'zhongguo '
* 'xxx' and "xxx" are different only when NJSTAR not in ASCII mode
*
*NOTE: Press Ctrl+C/Break to stop Macro execution. specially dead loop.
*------------------------------------------------------------------------------
*Examples:
*(1) Mark a sentence with Chinese character only.
Meta+1 Macro ScreenOff UnMarkBlock IsChinese JFalse END: &
LEFT: IsChinese JFalse BEG: CursorLeft Jump LEFT: &
BEG: CursorRight MarkBlock RIGHT: IsChinese JFalse MARKEND: &
CursorRight Jump RIGHT: MARKEND: MarkBlock END:
*(2) Call WordPefect 5.1 to Check the spelling of current File ,
* WARNING: WP51 must be on path
Meta+s Macro screenoff SaveFile DOS 'WP51 ' FileName enter &
EditFile FileName enter
*(3) Replace the current English/Chinese by user entered new character
Meta+F Macro UnMarkBlock IsChinese JFalse MW: MarkBlock Jump OK: &
MW: MarkWord OK: copy SearchReplace paste pause pause
*(4) Search the current English or Chinese word until end of the file
Meta+^F Macro screenoff unmarkblock IsChinese JFalse MW: MarkBlock Jump OK: &
MW: MarkWord OK: copy search paste screenon enter
*(5) Insert a file into current file
^I macro savefile openfile JFalse END: screenoff BegFile markline endfile &
markline copy QuitFile PrevFile paste gotoblock END:
*(6) Display the time and date for 5 second than delete it
meta+T macro enter enter enter enter cursorup cursorup tabright &
TimeDate $100 delline backspace backspace delchar
*(7) Read a file *.GB uuencoded in file *.UUE (UUDECODE.COM is needed)
* NOTE: Enter the file name with '.' but without extension (eg. CM9311A.)
Meta+^U Macro savefile editfile pause screenoff &
DOS "UUDECODE " Filename "UUE" Enter &
EditFile FileName "GB" Enter PrevFile QuitFile
*(8) Convert a file with every line hard returned into soft return
* NOTE: should have a blank line between paragraph, Mark a Block
Meta+\ macro screenoff GotoBlock IsCursorInBlock Jfalse END: &
Replace #10 #10 enter "##" Enter &
Replace #10 enter DelLine Enter &
Replace "##" enter #10 #10 Enter UnMarkBlock END:
*(9) Open a file with file name at cursor
Meta+^O Macro altwordset markword editfile paste enter defwordset
*(10) Use Shift + Arrow key to mark block interactively
#up Macro Screenoff MarkBlock CursorUp MarkBlock
#Down Macro Screenoff MarkBlock CursorDown MarkBlock
#Left Macro Screenoff MarkBlock CursorLeft MarkBlock
#Right Macro Screenoff MarkBlock CursorRight Markblock
***************** More macro Commands *******************
* Insert strings into file
Meta+^N Macro "Njstar" 'nihongbo ' #156 "39" #155 '00'
^N Macro ScreenOff "í╛─╧╝½╨╟í┐"
* Use this macro only to recover a corrupted Chinese string
Meta+^- Macro #172
* Automatically display the file Page by page or Line by line
* NOTE: Both macros are dead loop, press CTRL+BREAK to stop
Meta+^P Macro Start: BegFile beg: $12 PageDown JFalse Start: Jump beg:
Meta+^L Macro beg: Scrolldown Jfalse end: JUMP beg: &
end: BegFile $180 Jump beg:
* Search a user entered word then mark it
Meta+^M Macro search Pause markword
* Read Chinese characters in marked block, Mark block before using this macro
meta+P macro gotoblock Beg: IsChinese JFalse RT: HanziInfo $5 " " &
RT: CursorRight IsCursorInBlock JTrue Beg:
* Macro implements 'Delete to End of File'
Meta+E Macro UnMarkBlock MarkBlock EndFile MarkBlock DelBlock
* Macro implements 'Delete to End of Screen'
Meta+Q Macro UnMarkBlock MarkBlock EndScreen EndLine MarkBlock DelBlock
Meta+W Macro ScreenOff UnMarkBlock MarkBlock EndScreen EndLine &
MarkBlock DelBlock
*Call an external program 'GREP' to check the spelling of Current English word
meta+^X Macro MarkWord GotoBlock IsCursorInBlock Jfalse END: &
Copy DOS 'grep "^' Paste '" C:\dict.usa' Enter Pause END:
*-----------------------------------------------------------------------------
* Mouse buttons
*-----------------------------------------------------------------------------
M_LR UnMarkBlock
M_LEFT Nothing
M_RIGHT MarkBlock
M_LL HanziInfo
M_RR MarkLine
M_MID MarkLine
M_MM QuickHelp
*--------------------------------------------
* one key commands
*--------------------------------------------
^6 Symbols
^A ScrollUp
^B SearchBackward
^C NJCONFIG
^D Dos
^E DelToEndLine
^F SearchForward
^G Glossary
^J DelToBegLine
^K DelToEndLine
^L DupLine
^M EnglishMenu
^O OpenFile
^P Print
^S Shell
^T TimeDate
^W Copy
^Y DelLine
^Z ScrollDown
@A AltWordSet
@B MarkBlock
@D DelBlock
@C CopyBlock
@E EDicLookup
@G GotoBlock
@L MarkLine
@M MoveBlock
@Q DefWordSet
@S SaveBlock
@U UnMarkBlock
@W MarkWord
@X LianXiang
@Y UnDelBlock
@Z HanziInfo
F1 QuickHelp
F2 SaveFile
F3 QuitFile
F4 File
F5 Search
F6 SearchReplace
F7 RenameFile
F8 EditFile
F9 UnDelLine
F10 NextFile
F11 MacroRec
F12 MacroExec
^F1 FileStatus
^F2 Options
^F3 QuitAll
^F4 SaveAll
^F5 WordCount
^F6 GotoLine
^F7 SaveAs
^F8 AddLX
^F9 ToggleEOL
^F10 SwitchCCLIB
^F11 RepeatCmd
^F12 OutCode
@F1 PY2Hanzi
@F2 EXinput
@F3 OnlinePY
@F4 GBinput
@F5 PYinput
@F6 ASCinput
@F7 ZYinput
@F8 DelLX
@F9 PureChinese
@F10 PrevFile
@F11 SaveMacro
@F12 ReadMacro
#F1 Radicals
#F2 HzSaveFile
#F3 HzDecode
#F4 HzEditFile
#F5 PcxSaveFile
#F6 ZwSaveFile
#F7 ZwDecode
#F8 BacktoPinyin
#F9 ListDir
#F10 FileList
#F11 Macro UnMarkBlock AddPinYin
#F12 Macro UnMarkBlock DelPinYin
Meta+B ReadBig5
Meta+^B SaveBig5
Meta+M MacroRec
Meta+E MacroExec
Meta+w SaveMacro
Meta+R ReadMacro
Meta+^R RepeatCmd
HOME BegLine
UP CursorUp
PGUP PageUp
LEFT CursorLeft
RIGHT CursorRight
END EndLine
DOWN CursorDown
PGDN PageDown
DEL DelChar
INS BackToPinyin
^DEL DelBlock
^INS UnDelBlock
^BS DelLine
GREY+ Copy
GREY- DelBlock
GREY* Paste
BS BackSpace
TAB TabRight
ENTER Enter
GREYENTER HardReturn
#ENTER HardReturn
^LEFT WordLeft
^RIGHT WordRight
^END EndFile
^HOME BegFile
^PGUP BegFile
^PGDN EndFile
^UP BegScreen
^DOWN EndScreen
@UP ScrollUp
@DOWN ScrollDown
*---------------------------
* end of njconfig.key
*---------------------------